import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/Home.vue'
import HomeBanner from '../components/home/HomeBanner.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect: '/home'
  },
  {
    path: '/home',
    name: 'Home',
    component: HomeView,
    children: [
      {
        path: '',
        name: 'HomeBanner',
        component: HomeBanner
      }
    ]
  }
]

const router = new VueRouter({
  routes
})

export default router
